package com.hsogoo.avatar.control;

import com.hsogoo.avatar.enums.AvatarResult;
import com.hsogoo.avatar.model.AvatarResponse;

/**
 * Created by za-huangsaigang on 2018/10/30.
 */
public interface FallBack {

    public FallBack Default = new FallBack() {
        @Override
        public AvatarResponse invoke() {
            AvatarResponse response = new AvatarResponse();
            response.setFailResult(AvatarResult.FALL_BACK_RESPONSE);
            return response;
        }
    };

    public AvatarResponse invoke();

}
